package tw.com.diray.comm.ui;

import tw.com.diary.ae.com.DirayBussinessException;
import tw.com.diary.ae.com.Msg;

public class ToastFactory {
	public static GenericToastModel messageToast;

	public static <T extends GenericToastModel> T instance(Class<T> pClass) {
		try {

			return (T) new MessageToast();

		} catch (Exception e) {
			e.printStackTrace();
		}
		throw new DirayBussinessException(Msg.E0001);
	}
}
